05. Exercise: Writing Unit Tests
Exercise: Writing Unit Tests
Test the TotalsCalculator
Task Description:
The starter code for this exercise contains a maven project called cart with a class named TotalsCalculator. This class assembles CartTotals objects from a provided list of CartItem objects. For this assignment, you need to create a new test class for TotalsCalculator, write a method using the @Test annotation, and use the Assertions class to verify the behavior of this class.
Task Feedback:
Great job!